<!DOCTYPE html>
<!-- saved from url=(0070)http://sale.jieyoushequ.com/index/complete-order?id=108557&supId=11694 -->
<html class="pixel-ratio-1" style="font-size: 133.333px;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no, email=no">
    <meta content="fullscreen=yes,preventMove=no" name="ML-Config">
    <meta http-equiv="content-language" content="zh-CN">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>订单详情</title>
    <script src="./订单详情_files/common.js"></script>
    <link rel="stylesheet" href="./订单详情_files/completeOrder.css">
    <script src="./订单详情_files/jquery.min.js"></script><style type="text/css" abt="234"></style><style type="text/css"></style>
    <link rel="stylesheet" type="text/css" href="./订单详情_files/jquery-weui.min1.css">
    <script src="./订单详情_files/layer.js"></script><link href="./订单详情_files/layer.css" type="text/css" rel="styleSheet" id="layermcss">
    <script src="./订单详情_files/fastclick.js"></script>
    <script src="./订单详情_files/jquery-weui.js"></script>
    <script src="./订单详情_files/picker.js"></script>
    <script src="./订单详情_files/jweixin-1.2.0.js"></script>
    <style>
        .toolbar{
            background: #1B82D1;
        }
    </style>
<script id="picviewer-page-script">(function (messageID){
                var frameID=Math.random();
                var frames={
                    top:window.top,
                };

                window.addEventListener('message',function(e){
                    var data=e.data;
                    if( !data || !data.messageID || data.messageID != messageID )return;//通信ID认证
                    var source=e.source;
                    if(source===window){//来自contentscript,发送出去,或者干嘛。
                        if(data.to){
                            data.from=frameID;
                            frames[data.to].postMessage(data,'*');
                        }else{
                            switch(data.command){
                                case 'getIframeObject':{
                                    var frameWindow=frames[data.windowId];
                                    var iframes=document.getElementsByTagName('iframe');
                                    var iframe;
                                    var targetIframe;
                                    for(var i=iframes.length-1 ; i>=0 ; i--){
                                        iframe=iframes[i];
                                        if(iframe.contentWindow===frameWindow){
                                            targetIframe=iframe;
                                            break;
                                        };
                                    };
                                    var cusEvent=document.createEvent('CustomEvent');
                                    cusEvent.initCustomEvent('pv-getIframeObject',false,false,targetIframe);
                                    document.dispatchEvent(cusEvent);
                                }break;
                            };
                        };

                    }else{//来自别的窗口的，contentscript可以直接接收，这里保存下来自的窗口的引用
                        frames[data.from]=source;
                    };
                },true)
            })("pv-0.5106795670312598")</script><script>//remove 17173 video ad
doAdblock();
function doAdblock(){
    (function() {
        function A() {}
        A.prototype = {
            rules: {
                '17173_in':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFile(Customer)?\.swf/,
                    'replace':"http://swf.adtchrome.com/17173_in_20150522.swf"
                },
                '17173_out':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFileFirstpage\.swf/,
                    'replace':"http://swf.adtchrome.com/17173_out_20150522.swf"
                },
                '17173_live':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream(_firstpage)?\.swf/,
                    'replace':"http://swf.adtchrome.com/17173_stream_20150522.swf"
                },
                '17173_live_out':{
                    'find':/http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream_(custom)?Out\.swf/,
                    'replace':"http://swf.adtchrome.com/17173.out.Live.swf"
                }
            },
            _done: null,
            get done() {
                if(!this._done) {
                    this._done = new Array();
                }
                return this._done;
            },
            addAnimations: function() {
                var style = document.createElement('style');
                style.type = 'text/css';
                style.innerHTML = 'object,embed{\
                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;\
                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;\
                -o-animation-duration:.001s;-o-animation-name:playerInserted;\
                animation-duration:.001s;animation-name:playerInserted;}\
                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}';
                document.getElementsByTagName('head')[0].appendChild(style);
            },
            animationsHandler: function(e) {
                if(e.animationName === 'playerInserted') {
                    this.replace(e.target);
                }
            },
            replace: function(elem) {
                if(this.done.indexOf(elem) != -1) return;
                this.done.push(elem);
                var player = elem.data || elem.src;
                if(!player) return;
                var i, find, replace = false;
                for(i in this.rules) {
                    find = this.rules[i]['find'];
                    if(find.test(player)) {
                        replace = this.rules[i]['replace'];
                        if('function' === typeof this.rules[i]['preHandle']) {
                            this.rules[i]['preHandle'].bind(this, elem, find, replace, player)();
                        }else{
                            this.reallyReplace.bind(this, elem, find, replace)();
                        }
                        break;
                    }
                }
            },
            reallyReplace: function(elem, find, replace) {
                elem.data && (elem.data = elem.data.replace(find, replace)) || elem.src && ((elem.src = elem.src.replace(find, replace)) && (elem.style.display = 'block'));
                var b = elem.querySelector("param[name='movie']");
                this.reloadPlugin(elem);
            },
            reloadPlugin: function(elem) {
                var nextSibling = elem.nextSibling;
                var parentNode = elem.parentNode;
                parentNode.removeChild(elem);
                var newElem = elem.cloneNode(true);
                this.done.push(newElem);
                if(nextSibling) {
                    parentNode.insertBefore(newElem, nextSibling);
                } else {
                    parentNode.appendChild(newElem);
                }
            },
            init: function() {
                var handler = this.animationsHandler.bind(this);
                document.body.addEventListener('webkitAnimationStart', handler, false);
                document.body.addEventListener('msAnimationStart', handler, false);
                document.body.addEventListener('oAnimationStart', handler, false);
                document.body.addEventListener('animationstart', handler, false);
                this.addAnimations();
            }
        };
        new A().init();
    })();
}
//remove baidu search ad
if(document.URL.indexOf('www.baidu.com') >= 0){
    if(document && document.getElementsByTagName && document.getElementById && document.body){
        var aa = function(){
            var all = document.body.querySelectorAll("#content_left div,#content_left table");
            for(var i = 0; i < all.length; i++){
                if(/display:\s?(table|block)\s!important/.test(all[i].getAttribute("style"))){all[i].style.display= "none";all[i].style.visibility='hidden';}
            }
            all = document.body.querySelectorAll('.result.c-container[id="1"]');
            //if(all.length == 1) return;
            for(var i = 0; i < all.length; i++){
                if(all[i].innerHTML && all[i].innerHTML.indexOf('广告')>-1){
                    all[i].style.display= "none";all[i].style.visibility='hidden';
                }
            }
        }
        aa();
        document.getElementById('wrapper_wrapper').addEventListener('DOMSubtreeModified',aa)
    };
}
//remove sohu video ad
if (document.URL.indexOf("tv.sohu.com") >= 0){
    if (document.cookie.indexOf("fee_status=true")==-1){document.cookie='fee_status=true'};
}
//remove 56.com video ad
if (document.URL.indexOf("56.com") >= 0){
    if (document.cookie.indexOf("fee_status=true")==-1){document.cookie='fee_status=true'};
}
//fore iqiyi enable html5 player function
if (document.URL.indexOf("iqiyi.com") >= 0){
    if (document.cookie.indexOf("player_forcedType=h5_VOD")==-1){
        document.cookie='player_forcedType=h5_VOD'
        if(localStorage.reloadTime && Date.now() - parseInt(localStorage.reloadTime)<60000){
            console.log('no reload')
        }else{
            location.reload()
            localStorage.reloadTime = Date.now();
        }
    }
}
</script><style type="text/css">object,embed{                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;                -o-animation-duration:.001s;-o-animation-name:playerInserted;                animation-duration:.001s;animation-name:playerInserted;}                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style></head><style type="text/css" id="796668229946"></style>
<body>
<div class="navv">
    <ul>
        <li class="active">成交信息填写</li>
    </ul>
</div>
<div>
    <div class="content">
        <ul class="content1 padd">
            <li>
                <a>购买商品</a>
                <select id="type1" name=""><option value="请选择">请选择</option><option value="0">冰箱</option><option value="1">洗衣机</option><option value="2">电视</option><option value="3">空调挂机</option><option value="4">空调柜机</option></select>
            </li>
            <li>
                <a>商品等级 </a>
                <select id="type2" name=""><option value="请选择">请选择</option></select>
            </li>
            <li>
                <a> 商品品牌</a>
                <select id="type3" name=""><option value="请选择">请选择</option></select>
            </li>
            <li>
                <a>商品型号</a>
                <select id="type4" name=""><option value="请选择">请选择</option></select>
            </li>
            <li>
                <a>商品容量</a>
                <select id="type5" name=""><option value="请选择">请选择</option></select>
            </li>
            <li>
                <a>商品成色</a>
                <select id="type7" name="">
                    <option value="">请选择</option>
                </select>
            </li>
            <li>
                <a>结算价格</a>
                <span class="mom"><input type="text" readonly="readonly" id="type6" placeholder="结算价格"></span>
            </li>
            <li>
                <a>补差价</a>
                <span class="mom"><input type="text" readonly="readonly" id="type8" placeholder="补差价"></span>
            </li>
            <li class="so">
                <a>送货日期</a>
                <span class="rq"><input id="time" type="text" value="" readonly=""><i class="ri"></i>
                    </span>
            </li>
        </ul>
        <div class="hui"></div>
        <div class="xuan">
            瑕疵图<span>（选填项）：</span>
            <div class="optionBox">
                <input name="sex" class="selectWrong" checked="" type="radio" data-type="1"><label>有</label>
            </div>
            <div class="optionBox">
                <input name="sex" class="selectWrong" type="radio" data-type="2"><label>无</label>
            </div>
        </div>
        <!--++-->
        <div class="defectsBox deItem">
            <div class="defects">
                <img src="./订单详情_files/add_img.jpg" alt="">
            </div>

        </div>
        <div class="hui"></div>

        <ul class="content1 chang padd deItem">
            <li>瑕疵点描述：</li>
            <li>
                <a>颜色</a>
                <span>
                        <select id="des1" name="">
                            <option value="请选择">请选择</option>
                            <option value="严重变色">严重变色</option>
                            <option value="轻微变色">轻微变色</option>
                        </select>
                    </span>
            </li>
            <li>
                <a>划痕</a>
                <span>
                        <select id="des2" name="">
                            <option value="请选择">请选择</option>
                            <option value="正面2cm以下">正面2cm以下</option>
                            <option value="正面2-5cm">正面2-5cm</option>
                            <option value="正面5-10cm">正面5-10cm</option>
                            <option value="正面10cm以上">正面10cm以上</option>
                            <option value="侧面2cm以下">侧面2cm以下</option>
                            <option value="侧面2-5cm">侧面2-5cm</option>
                            <option value="侧面5-10cm">侧面5-10cm</option>
                            <option value="侧面10cm以上">侧面10cm以上</option>
                        </select>
                    </span>
            </li>
            <li>
                <a>磕碰</a>
                <span>
                        <select id="des3" name="">
                            <option value="请选择">请选择</option>
                            <option value="正面1角硬币">正面1角硬币</option>
                            <option value="正面5角硬币">正面5角硬币</option>
                            <option value="正面1元硬币">正面1元硬币</option>
                            <option value="正面1元硬币以上">正面1元硬币以上</option>
                            <option value="侧面1角硬币">侧面1角硬币</option>
                            <option value="侧面5角硬币">侧面5角硬币</option>
                            <option value="侧面1元硬币">侧面1元硬币</option>
                            <option value="侧面1元硬币以上">侧面1元硬币以上</option>
                        </select>
                    </span>
            </li>
            <li>
                <a>掉漆</a>
                <span>
                        <select id="des4" name="">
                            <option value="请选择">请选择</option>
                            <option value="有">有</option>
                        </select>
                    </span>
            </li>
            <li>
                <a>维修史</a>
                <span>
                        <select id="des5" name="">
                            <option value="请选择">请选择</option>
                            <option value="主部件">主部件</option>
                            <option value="其他部件">其他部件</option>
                        </select>
                    </span>
            </li>
        </ul>
        <!--尾部按钮-->
        <div class="foot">
            <button class="btl">取消</button>
            <button class="btr">保存</button>
        </div>

    </div>
</div>
<div class="blackMask close-picker"></div>
<script>wx.config({
	debug: 0,
	appId: 'wx04b515871af24970',
	timestamp: 1533104181,
	nonceStr: 'YIl8RLOKqd8wUfhG',
	signature: '3cfa55491bc5c4fa36ca11d837201f7f3ee87388',
	jsApiList: ['chooseImage','uploadImage']
});</script>
<script>
    $(function(){
//            * http://sale.com/inquiry.item/inquirt.item?menu=category //商品分类
//            * http://sale.com/inquiry.item/inquirt.item?menu=grade&categoryId=2 //商品等级
//            * http://sale.com/inquiry.item/inquirt.item?menu=brand&categoryId=0 //商品品类
//            * http://sale.com/inquiry.item/inquirt.item?menu=model-number&categoryId=0&gradeId=1 //商品型号
//            * http://sale.com/inquiry.item/inquirt.item?menu=capacity&categoryId=0&gradeId=1 //商品容量
//            * http://sale.com/inquiry.item/inquirt.item?menu=price&categoryId=0&gradeId=1&brandId=1&modelNumberId=1&capacityId=1
        FastClick.attach(document.body);
        //var id=GetQueryString('id');  //s_supplier_order.order_goods_id
        var supId=GetQueryString('supId'); //s_supplier_order.id
        // var supId = 552;
        //console.log(id+'--'+supId);

        var defaultData={
            menu : 'category'
        };
        var defaultIndex = 1;
        getOption(defaultData,defaultIndex);
        function getOption(data,index){
            $.ajax({
                type: urlType,
                url: "/inquiry-item/get-category",
                data: data,
                dataType: "json",
                success: function (res) {
                    var option = res.data;
                    if(index==6){
                        $('#type6').val(option.settlementPrice);
                        $('#type8').attr('title',option.platformPrice);
                        var price = $('#type7').attr('datas');
                        var platformPrice=$('#type8').attr('title');
                        $('#type8').val((parseInt(platformPrice)-(parseInt(price))/100));
                        return;
                    }
                    var str = '<option value="请选择">请选择</option>';
                    for(var i=0;i<option.length;i++){
                        str+='<option value="'+i+'">'+option[i]+'</option>';
                    }
                    for(var j=1;j<=5;j++){
                        if(index<j){
                            $('#type'+j+'').empty().append('<option value="请选择">请选择</option>');
                            $('#type6').val();
                        }
                    }
                    $('#type'+index+'').empty().append(str);
                },
                error: function () {
                }
            });
        }
        //获取商品等级
        $(document).on('change','#type1',function(){
            var id = $(this).val();
            var data = {
                menu : 'grade',
                categoryId : id
            };
            getOption(data,2);
        });
        //获取商品品牌  ?menu=brand&categoryId=0&gradeId=0
        $(document).on('change','#type2',function(){
            var id = $('#type1').val();
            var gradeId = $('#type2').val();
            var data = {
                menu : 'brand',
                categoryId : id,
                gradeId : gradeId
            };
            getOption(data,3);
        });
        //获取商品型号  menu=model-number&categoryId=0&gradeId=1
        $(document).on('change','#type3',function(){
            var categoryId = $('#type1').val();
            var gradeId = $('#type2').val();
            var data = {
                menu : 'model-number',
                categoryId : categoryId,
                gradeId : gradeId
            };
            getOption(data,4);
        });
        //获取商品容量  menu=capacity&categoryId=0&gradeId=1&modelNumberId=1
        $(document).on('change','#type4',function(){
            var categoryId = $('#type1').val();
            var gradeId = $('#type2').val();
            var modelNumberId = $(this).val();
            var data = {
                menu : 'capacity',
                categoryId : categoryId,
                gradeId : gradeId,
                modelNumberId:modelNumberId
            };
            getOption(data,5);
        });
        //补差价
        $(document).on('change','#type4',function(){
            var idd=GetQueryString('id');
            $.ajax({
                type: 'post',
                url:'/user-order/deal-info',
                dataType: "json",
                data:{
                    order_id:idd
                },
                success: function (res) {
                    console.log(res)
                    if(res.code==200){
                        var list=res.data.channelId;
                        //后台录入订单的平台售价
                        var Lstandard_price = res.data.standard_price;
                        $('#type7').attr('data', list);
                        $('#type7').attr('datas', Lstandard_price);
                    }
                    else{
                        layer.open({
                            content: res.message,
                            btn: '确定'
                        })
                    }
                },
                error:function () {
                }
            })
        });
        //获取成色
        $(document).on('change','#type5',function(){
            var channelId=$('#type7').attr('data');
            var data = {
                menu : 'condition',
                channelId:channelId
            };
            getOption(data,7);
        });
        //获取商品价格  ?menu=price&categoryId=0&gradeId=1&brandId=1&modelNumberId=1&capacityId=1
        $(document).on('change','#type7',function(){
            var categoryId = $('#type1').val();
            var gradeId = $('#type2').val();
            var brandId = $('#type3').val();
            var modelNumberId = $('#type4').val();
            var conditionId = $('#type7').val();
            var capacityId = $('#type5').val();
            var channelId=$('#type7').attr('data');
            var data = {
                menu : 'price',
                categoryId : categoryId,
                gradeId : gradeId,
                brandId:brandId,
                modelNumberId:modelNumberId,
                capacityId:capacityId,
                conditionId:conditionId,
                channelId:channelId
            };
            getOption(data,6);
        });

        //选择时间
        function getNowFormatDate() {
            var date = new Date();
            var seperator1 = "-";
            var year = date.getFullYear();
            var month = date.getMonth() + 1;
            var strDate = date.getDate();
            if (month >= 1 && month <= 9) {
                month = "0" + month;
            }
            if (strDate >= 0 && strDate <= 9) {
                strDate = "0" + strDate;
            }
            var currentdate = year + seperator1 + month + seperator1 + strDate;

            return currentdate;
        }
        $("#time").datetimePicker({
            title: "请选择时间",
            times: function () {
                return [
                    {
                        values: ['8:00-10:00', '10:01-13:00','13:01-16:00','16:01-19:00','19:01-22:00','22:01-00:00(慎选)']
                    }
                ];
            },
            value:getNowFormatDate()+ ' '+'8:00-10:00',
            onChange: function (picker, values, displayValues) {
                // console.log(values);
            }
        });

        //上传图片
        $(document).on('click','.imgBtn',function(){
            var that=this;
            wx.chooseImage({
                count: 1, // 默认9
                sizeType: ['original'], // 可以指定是原图还是压缩图，默认二者都有
                sourceType: ['album','camera'], // 可以指定来源是相册还是相机，默认二者都有
                success: function (res) {
                    var localId = res.localIds; // 返回选定照片的本地ID列表，localId可以作为img标签的src属性显示图片

                    wx.uploadImage({
                        localId: localId.toString(), // 需要上传的图片的本地ID，由chooseImage接口获得
                        isShowProgressTips: 1,  // 默认为1，显示进度提示
                        success: function (res) {
                            var serverId = res.serverId; // 返回图片的服务器端ID
                            $.ajax({
                                type: 'post',
                                url: "/upload/up-img",
                                data: {
                                    imgDate:serverId
                                },
                                dataType: "json",
                                success: function (res) {
                                    if(res.code==200){
                                        $(that).attr('data-img',res.msg);
                                        $(that).next().attr('src',localId);
                                    }else{
                                        layer.open({
                                            content: res.result.msg
                                            ,btn: '确定'
                                        });
                                    }
                                },
                                error: function () {
                                }
                            });
                        },
                        fail:function(err){
                            layer.open({
                                content: JSON.stringify(err)
                                ,btn: '确定'
                            });
                        }
                    });
                },
                fail:function(err){
                    layer.open({
                        content: JSON.stringify(err)
                        ,btn: '确定'
                    });
                }
            });
        });

        //切换有无瑕疵图
        $('input:radio[name="sex"]').change( function(){
            // console.log($(this).data('type'))
            var type=$(this).data('type');
            if(type==1){
                $('.deItem').show();
            }else{
                $('.deItem').hide();
            }

        })
        //上传瑕疵图
        $(document).on('click','.defects',function(){
            var that=this;
            wx.chooseImage({
                count: 1, // 默认9
                sizeType: ['original'], // 可以指定是原图还是压缩图，默认二者都有
                sourceType: ['album','camera'], // 可以指定来源是相册还是相机，默认二者都有
                success: function (res) {
                    var localId = res.localIds; // 返回选定照片的本地ID列表，localId可以作为img标签的src属性显示图片
                    wx.uploadImage({
                        localId: localId.toString(), // 需要上传的图片的本地ID，由chooseImage接口获得
                        isShowProgressTips: 1,  // 默认为1，显示进度提示
                        success: function (res) {
                            var serverId = res.serverId; // 返回图片的服务器端ID 123
                            $.ajax({
                                type: 'post',
                                url: "/upload/up-img",
                                data: {
                                    imgDate:serverId
                                },
                                dataType: "json",
                                success: function (res) {
                                    if(res.code==200){
                                        if($(that).attr('data-wimg')){
                                            //修改图片
                                            $(that).attr('data-wimg',res.msg);
                                            $(that).find('img').attr('src',localId);
                                        }else{
                                            //添加图片
                                            $(that).attr('data-wimg',res.msg);
                                            $(that).find('img').attr('src',localId);
                                            $(that).parent().append('<div class="defects"> <img src="/images/add_img.jpg" alt=""> </div>')
                                        }
                                    }else{
                                        layer.open({
                                            content: res.result.msg
                                            ,btn: '确定'
                                        });
                                    }
                                },
                                error: function () {
                                }
                            });
                        },
                        fail:function(err){
                            layer.open({
                                content: JSON.stringify(err)
                                ,btn: '确定'
                            });
                        }
                    });
                },
                fail:function(err){
                    layer.open({
                        content: JSON.stringify(err)
                        ,btn: '确定'
                    });
                }
            });
        })

        //确定提交商品信息
        $(document).on('click','.btr',function(){
            if($('#type1').val()=='请选择'||$('#type2').val()=='请选择'||$('#type3').val()=='请选择'||$('#type4').val()=='请选择'||$('#type5').val()=='请选择'||$('#type6').val()==''||$('#time').val()==''){
                layer.open({
                    content: '请完善信息'
                    ,btn: '确定'
                });
            }else{
                //图片
                var imgArr=[];
                $('[data-img]').each(function(k,v){
                    var img=$(v).attr('data-img');
                    imgArr.push(img);
                });
                // if(imgArr.length<4){
                //     layer.open({
                //         content: '请完善商品图'
                //         ,btn: '确定'
                //     });
                //     return;
                // }
                //瑕疵图
                var badArr=[];
                $('[data-wimg]').each(function(k,v){
                    var img=$(v).attr('data-wimg');
                    badArr.push(img);
                });

                var data={
                    id:supId,
                    condition : $('#type7').find('option:selected').html(),
                    category : $('#type1').find('option:selected').html(),
                    grade : $('#type2').find('option:selected').html(),
                    brand : $('#type3').find('option:selected').html(),
                    model_number : $('#type4').find('option:selected').html(),
                    capacity : $('#type5').find('option:selected').html(),
                    deal_price : parseInt($('#type6').val())*100,
                    delivery_time : $('#time').val(),
                    real_images : JSON.stringify(imgArr),
                    flaw_images : JSON.stringify(badArr),
                    flaw_colour : ($('#des1').val()=='请选择')?'':$('#des1').val(),
                    flaw_scratch : ($('#des2').val()=='请选择')?'':$('#des2').val(),
                    flaw_bump : ($('#des3').val()=='请选择')?'':$('#des3').val(),
                    flaw_paint: ($('#des4').val()=='请选择')?'':$('#des4').val(),
                    flaw_repair:($('#des5').val()=='请选择')?'':$('#des5').val(),
                    standard_price: ($('#type8').attr('title'))*100
                };

                $.ajax({
                    type: urlType,
                    url: "/user-order/deal",
                    data:data,
                    dataType: "json",
                    success: function (res) {

                        if(res.code==200){
                            window.location.href="/index/deal-success";
                        }else{
                            layer.open({
                                content:res.message,
                                btn:'确定'
                            })
                        }
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        alert(JSON.stringify(XMLHttpRequest));
                        alert(textStatus);
                        alert(errorThrown);
                    }
                });

            }
        })
    })
</script>


</body></html>